home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.20020314-20021006 / 000086_fdc@columbia.edu_Tue May 21 09:04:08 EDT 2002.msg < prev    next >
Text File  |  2002-10-06  |  2KB  |  51 lines

  1. Article: 13380 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Why does my script exit?
  6. Date: 21 May 2002 09:04:04 -0400
  7. Organization: Columbia University
  8. Lines: 34
  9. Message-ID: <acdgk4$dnk$1@watsol.cc.columbia.edu>
  10. References: <b3fkeukbsnm79kdi3f4crjs4ka9vinc6f2@4ax.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1021986246 11947 128.59.39.139 (21 May 2002 13:04:06 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 21 May 2002 13:04:06 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13380
  16.  
  17. In article <b3fkeukbsnm79kdi3f4crjs4ka9vinc6f2@4ax.com>,
  18. dgk  <sonicechoesWithNoSpam@hotmail.com> wrote:
  19. : This loop, from hostmdm.ksc, exits and returns to the command prompt
  20. : after running my MM1 script:
  21. : while 1 {
  22. :     answer
  23. :     if > \v(dialstatus) 0 if < \v(dialstatus) 22 stop 1 Fatal modem error
  24. :     if = \v(dialstatus) 0 take MM1.ksc
  25. :     echo Type Ctrl-C to exit...          ; Give user a chance to cancel
  26. :     sleep 2
  27. : }
  28. : This is the MM1 script. It isn't complete, but after executing the
  29. : IFAIL code (hangup, exit), the above loop just exits and doesn't stick
  30. : around for another call. Any help appreciated.
  31. It exits because it contains an EXIT command:
  32.  
  33.   :IFAIL
  34.   HANGUP
  35.   EXIT
  36.  
  37. : Just as an aside, I was going to use the INTEXT macro to read a line
  38. : but that seems designed for terminal emulation and this is just being
  39. : used by another computer with its script so I don't think that I need
  40. : to worry about backspaces and cursor positions.
  41. Right, in that case you would not need to handle editing.  But if it
  42. works with the editing, you might as well leave it, because then you
  43. can always use or test it manually without having to worry about
  44. perfect typing.
  45.  
  46. - Frank
  47.